From 587819acd6e0d6a5831bae3023f691304a87b0a6 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 20 Nov 2007 04:31:06 +0000 Subject: [PATCH] Improve error from xcalloc(). --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index fc3e74e21..a6f89c2b3 100644 --- a/util.c +++ b/util.c @@ -101,7 +101,7 @@ xcalloc(size_t nmemb, size_t size) #endif if (!obj) { - fatal("gpsbabel: Unable to allocate %ld bytes of memory.\n", (unsigned long) size); + fatal("gpsbabel: Unable to allocate %ld units of %ld bytes of memory.\n", (unsigned long) nmemb, (unsigned long) size); } return obj; -- 2.30.2